package com.piece.module.spider.support;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 流程通知方式
 */
public enum FlowNoticeWay {

	email("邮件通知"),

	sms("短信通知");

	private String title;

	private FlowNoticeWay(String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		return this.name() + ":" + this.title;
	}

	public static Map<String, String> getMap() {
		Map<String, String> map = new LinkedHashMap<>();
		for (FlowNoticeWay type : FlowNoticeWay.values()) {
			map.put(type.name(), type.toString());
		}
		return map;
	}
}
